#pragma once
#include <string>
#include <QtWidgets/QWidget>
#include <QVector>
#define MaxVertexNum 25

// 定义边和顶点的类型
typedef QString VertexType;
typedef double EdgeType;

class MGraph
{
	public:
		VertexType vex[MaxVertexNum];
		EdgeType edge[MaxVertexNum][MaxVertexNum];
		MGraph();
		~MGraph();
		quint8 getVexNum();
		quint8 getArcNum();
		void setVex(VertexType vex[MaxVertexNum]);
		void setEdge(EdgeType edge[MaxVertexNum][MaxVertexNum]);
		void setVexNum(quint8& vexnum);
		void setArcNum(quint8& arcnum);
		
	private:
		quint8 vexnum, arcnum;
};

